function updUserPwdDialog(
    {
        userId,
        callback = Function()
    }
) {
    if (!userId) {
        return $.toast("用户ID不能为空");
    }

    const $form = $(`
        <form class="mask-account">
            <div>
                <span class="mask-account-tit"><sub style="color: red;">*</sub> 密码</span>
                <span class="input-select"><input type="password" name="password" placeholder="请输入密码" /></span>
            </div>
            
            <div>
                <span class="mask-account-tit"><sub style="color: red;">*</sub> 确认密码</span>
                <span class="input-select"><input type="password" name="rePassword" placeholder="请确认密码" /></span>
            </div>
        </form>
    `)

    const $dialogWidget = $.dialog($form, {
        title: "修改密码",
        width: "600px",
        ok: () => {
            const data = $.getFormData($form);

            updUserPassword(data, res => {
                const {Code, Message} = res;
                if (Code !== 10000) {
                    return $.toast(Message);
                }

                $dialogWidget.remove();
                $.toast("修改成功");
                callback();
            })

            return false;
        }
    })


    function updUserPassword(param, callback = Function()) {
        return $.sApi({
            data: param,
            url: "/api/User/updUserPassword"
        }, callback)
    }
}